import './global.scss'
import {BrowserRouter } from 'react-router-dom';
import Router from  './route'
import store,{persistor} from './store';
import{Provider} from 'react-redux'
import { PersistGate } from 'redux-persist/integration/react'


function App() {


  return (
    <div >    
        <Provider store={store}>
          <PersistGate loading={null} persistor={persistor}>
             <BrowserRouter>
                <Router />
             </BrowserRouter>
          </PersistGate>
        </Provider>
    </div>
  )
}

export default App
